from application import app
from common.libs.Helper import ops_rander
from common.libs.LogService import LogService


@app.errorhandler(404)
def error_404(e):
    LogService.addErrorLog(str(e))
    return ops_rander("error/error.html", {"status": 404, "msg": "您访问的页面被管理员吃了"})